package com.iceframework.core.thread.entity;

import java.util.Date;
import java.util.concurrent.ThreadPoolExecutor;

public class ThreadPoolDispatcherEntity {

	private String key;
	private ThreadPoolExecutor threadPoolExecutor;
	private Date startDate;
	private String status;
	private int poolSize;// 线程池核心线程的数量
	private int maximumPoolSize;// 线程池可创建的最大线程数量
	private long TaskCount;
	private long CompletedTaskCount;
	private String keepAliveTime;// 当线程数量超过了corePoolSize指定的线程数，并且空闲线程空闲的时间达到当前参数指定的时间时该线程就会被销毁，如果调用过allowCoreThreadTimeOut(boolean
	private String workQueue;// 存储未执行的任务的队列；

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public ThreadPoolExecutor getThreadPoolExecutor() {
		return threadPoolExecutor;
	}

	public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) {
		this.threadPoolExecutor = threadPoolExecutor;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getPoolSize() {
		return poolSize;
	}

	public void setPoolSize(int poolSize) {
		this.poolSize = poolSize;
	}

	public int getMaximumPoolSize() {
		return maximumPoolSize;
	}

	public void setMaximumPoolSize(int maximumPoolSize) {
		this.maximumPoolSize = maximumPoolSize;
	}

	public long getTaskCount() {
		return TaskCount;
	}

	public void setTaskCount(long taskCount) {
		TaskCount = taskCount;
	}

	public long getCompletedTaskCount() {
		return CompletedTaskCount;
	}

	public void setCompletedTaskCount(long completedTaskCount) {
		CompletedTaskCount = completedTaskCount;
	}

	public String getKeepAliveTime() {
		return keepAliveTime;
	}

	public void setKeepAliveTime(String keepAliveTime) {
		this.keepAliveTime = keepAliveTime;
	}

	public String getWorkQueue() {
		return workQueue;
	}

	public void setWorkQueue(String workQueue) {
		this.workQueue = workQueue;
	}

	@Override
	public String toString() {
		return "ThreadDispatcherEntity [key=" + key + "]";
	}

}
